#!/bin/bash

PASS_FILE=/data/etc/rsync/passwd

SRC=.
USER=rsync
HOST=develop.yomob.com
DEST=YoMob-Root-EN

chmod 600 ${PASS_FILE}

rsync -avcrlt \
    --bwlimit=10240 \
    --exclude=.git \
    --exclude=.idea \
    --exclude=node_modules \
    --exclude=deploy.sh \
    --delete \
    --progress $SRC ${USER}@${HOST}::${DEST} \
    --password-file=${PASS_FILE}
